<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of c_apply_event_model
 *
 * @author tonatos
 */
class c_apply_event_model extends c_base_model{
    public $id_doc;
    public $fio;
    public $email;
    public $tel;
    public $data;
    public $comment;

    public function  before_update() {
        $this->before_insert();
    }
    public function  after_update() {
        $this->after_insert();
    }

    public function  before_insert() {
        $this->data = serialize($this->data);
    }

    public function  after_insert() {
        $this->data = unserialize($this->data);
    }

    public function  after_load() {
        $this->data = unserialize($this->data);
    }
    
}
?>
